<template>
    <el-card class="ad-container">
      <template #header>
        <div class="ad-label">广告</div>
      </template>
      <el-image
        src="/public/images/ad.jpg"
        fit="cover"
        class="ad-content"
      />
    </el-card>
  </template>
  
  <style scoped>
  .ad-container {
    position: relative;
  }
  
  .ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 12px;
    z-index: 1;
  }
  
  .ad-content {
    width: 100%;
    height: 150px;
    display: block;
  }
  </style>